<?php
	
	function displayConnexionForm($MSG_CNX_H, $MSG_CNX_B, $retour, $errormsg) {
?>
		<table style="width:100%; text-align: center;">
			<tr>
				<!-- CADRE GAUCHE -->
					<td style="width: 60%; vertical-align: top; text-align: left; padding-right: 110px; text-align: justify;">
						<h1>Espace personnalis&eacute;</h1>
						<p />
						<?php echo $MSG_CNX_H; ?>
						<h1>Pas encore inscrit ?</h1>
						<p />
						<?php echo $MSG_CNX_B; ?>
					</td>
				<!-- FIN CADRE GAUCHE -->

				<!-- CADRE MILIEU -->
					<td style="width: 40%; vertical-align: top; text-align: center;">
						<br />
						<div class="box">
							<form name="LOGIN_FORM" method="POST" action="index.php?content=connexion&check=1" onSubmit="return verifLoginForm()" enctype="multipart/form-data">
								
								<div class="boxhead">
									<h1><?php echo $retour; ?> Connexion</h1>
									<div style="color:red">
										<?php 
												echo $errormsg;
										 ?>
									</div>
								</div>
								
								<br />
								
								<div class="boxmidd">
									<input type="text" name="UTI_MAIL" placeHolder="Adresse de messagerie" value='<?php echo $_COOKIE['cookiemail']; ?>' autocomplete="off" />
									<br />
									<input type="password" name="UTI_MDP" placeHolder="Mot de passe" value='<?php echo $_COOKIE['cookiepass']; ?>' />
									
									<br />
									<br />
									
									<table style="width:100%">
										<tr>
											<td style="width:50%; text-align: left;">
												<input name="VILLE_DEPART" type="submit" value="Connexion" />
											</td>
											<td style="width:50%; text-align: right; vertical-align: bottom;">
												<span class="small">Rester connect&eacute;</span>
													<input name="remember" type="checkbox" <?php if(isset($_COOKIE['cookiemail']) && ($_COOKIE['cookiemail']!="")) {echo "checked";}  ?> />
												<span class="small"><a href="">Connexion impossible ?</a></span>	
											</td>
										</tr>
									</table>
								</div>
								
							</form>
						</div>
					</td>
				<!-- FIN CADRE MILIEU -->
			</tr>
		</table>
		
<?php 
	}
	displayConnexionForm($MSG_CNX_H, $MSG_CNX_B, $retour, $errormsg);
?>